/*
 * BibliotecaInfoFrame.java
 *
 * Created on 5 ottobre 2008, 19.03
 */

package it.biblioteca;

import javax.swing.ImageIcon;

/**
 *
 * @author  giovine
 */
public class BibliotecaInfoFrame extends javax.swing.JFrame {

    /** Creates new form BibliotecaInfoFrame */
    public BibliotecaInfoFrame() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        license_bt = new javax.swing.JButton();
        close_bt = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("BiblioTeCa - Informazioni");
        setIconImage(new ImageIcon("files/icon_desktop.png").getImage());
        setResizable(false);

        jLabel1.setFont(new java.awt.Font("DejaVu Sans", 0, 24)); // NOI18N
        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/it/biblioteca/images/Header.png"))); // NOI18N

        license_bt.setIcon(new javax.swing.ImageIcon(getClass().getResource("/it/biblioteca/icons/icon_license.png"))); // NOI18N
        license_bt.setText("Licenza");
        license_bt.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                license_btActionPerformed(evt);
            }
        });

        close_bt.setIcon(new javax.swing.ImageIcon(getClass().getResource("/it/biblioteca/icons/icon_ok.png"))); // NOI18N
        close_bt.setText("Ok");
        close_bt.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                close_btActionPerformed(evt);
            }
        });

        jLabel2.setText("<html>\n<div align=\"center\">\nBiblioTeCa v0.1b\n</div>\n<div>\nQuesto programma è stato sviluppato da Giovine Massimiliano\n<p>Copyright ©2008 Giovine Massimiliano</p>\n<p>E' free software in ogni sua parte. Se nell'utilizzo delle icone ho commesso qualche violazione di copyright siete pregati gentilmente di segnalarmelo all'indirizzo evocthurner@gmail.com o sulla pagina web <a href=\"http://mybiblioteca.googlecode.com\">MyBiblioteca</a>.</p>\n</div>\n</html>");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(layout.createSequentialGroup()
                            .addGap(22, 22, 22)
                            .addComponent(jLabel1))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(131, 131, 131)
                            .addComponent(license_bt)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(close_bt, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(41, 41, 41)
                        .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 186, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(license_bt)
                    .addComponent(close_bt))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void close_btActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_close_btActionPerformed
    dispose();
}//GEN-LAST:event_close_btActionPerformed

private void license_btActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_license_btActionPerformed
    BibliotecaLicenseFrame license = new BibliotecaLicenseFrame();
    license.setLocationRelativeTo(null);
    license.setVisible(true);
}//GEN-LAST:event_license_btActionPerformed

   
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton close_bt;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JButton license_bt;
    // End of variables declaration//GEN-END:variables

}
